package com.newsproject.pojo.DTO;

import Util.FormatTime;
import lombok.Data;
import java.util.Date;

@Data
public class AuditPostDTO {
     private Integer postId;   //审核新闻记录id
     private String postTitle;      //新闻标题
     private String postAuthor;     //新闻作者
     private String postCover;      //新闻封面
     private String postContent;    //新闻内容
     private String postTag;        //新闻类别
     private int isMemberOnly;      //是否为会员专属
     private Date createdTime;       //创建时间
     private int auditStatus;       //审核状态 0未审核 1审核通过 2审核未通过

   public String getCreatedTime(){
        return FormatTime.formatDateTime(createdTime);
    }

}
